Telegram Group & Telegram Channel
Palindrome Checker with Wildcard

Time: 45 minutes
Difficulty: Easy/Medium
Languages: Any

====================
Given a string that may contain lowercase English letters and a special wildcard character '*', implement a function that determines if the string is a palindrome. The wildcard character '*' can match any single character.

For example:
- "racecar" is a palindrome.
- "r*cecar" is a palindrome ('*' matches 'a').
- "r*cec*r" is a palindrome (both '*' match 'a').
- "hello" is not a palindrome.
- "h*llo" is not a palindrome (no single character can make it a palindrome).
- "a*" is a palindrome ('*' matches 'a').
- "*" is a palindrome ('*' matches itself or any single character).

Write a function is_wildcard_palindrome(text: str) -> bool that returns True if the string is a palindrome considering the wildcard, and False otherwise.

====================
Please answer to this message with your solution 💡❤️🚀



tg-me.com/prograchallenges/630
Create:
Last Update:

Palindrome Checker with Wildcard

Time: 45 minutes
Difficulty: Easy/Medium
Languages: Any

====================
Given a string that may contain lowercase English letters and a special wildcard character '*', implement a function that determines if the string is a palindrome. The wildcard character '*' can match any single character.

For example:
- "racecar" is a palindrome.
- "r*cecar" is a palindrome ('*' matches 'a').
- "r*cec*r" is a palindrome (both '*' match 'a').
- "hello" is not a palindrome.
- "h*llo" is not a palindrome (no single character can make it a palindrome).
- "a*" is a palindrome ('*' matches 'a').
- "*" is a palindrome ('*' matches itself or any single character).

Write a function is_wildcard_palindrome(text: str) -> bool that returns True if the string is a palindrome considering the wildcard, and False otherwise.

====================
Please answer to this message with your solution 💡❤️🚀

BY Programming Challenges


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/prograchallenges/630

View MORE
Open in Telegram


Programming Challenges Telegram | DID YOU KNOW?

Date: |

Dump Scam in Leaked Telegram Chat

A leaked Telegram discussion by 50 so-called crypto influencers has exposed the extraordinary steps they take in order to profit on the back off unsuspecting defi investors. According to a leaked screenshot of the chat, an elaborate plan to defraud defi investors using the worthless “$Few” tokens had been hatched. $Few tokens would be airdropped to some of the influencers who in turn promoted these to unsuspecting followers on Twitter.

The global forecast for the Asian markets is murky following recent volatility, with crude oil prices providing support in what has been an otherwise tough month. The European markets were down and the U.S. bourses were mixed and flat and the Asian markets figure to split the difference.The TSE finished modestly lower on Friday following losses from the financial shares and property stocks.For the day, the index sank 15.09 points or 0.49 percent to finish at 3,061.35 after trading between 3,057.84 and 3,089.78. Volume was 1.39 billion shares worth 1.30 billion Singapore dollars. There were 285 decliners and 184 gainers.

Programming Challenges from fr


Telegram Programming Challenges
FROM USA